| Microsoft Visual J++ 1.1 Release Notes |
Home
|
© 1996-1997 Microsoft Corporation
These release notes contain supplemental information to the Microsoft® Visual J++&trade 1.1 documentation in Help, books, and on CD. For additional information, check the Microsoft Visual J++ Web site at http://www.microsoft.com/visualj/. Many of the issues outlined in this document will be corrected in upcoming releases.
Contents
English version of Internet Explorer 3.01 may overwrite localized versionChanging default installation path not recommended
Protected-Mode CD-ROM driver required under Windows 95 for Visual J++ installation
Use Knowledge Base articles to solve setup and operating problems
Using Java and DCOM
Wizard Bar: Class name may not be fully viewable at some monitor resolutionsDatabase Wizard for Java: Generated code causes exceptions in older versions of SQL Server
Java Resource Wizard: Controls may not appear when dialog class is used in application
Runtime error "java.lang.ClassFormatError" may occur when using Automation
Source code synchronization problems occur while stepping through source code in debugger
Visual J++ may overwrite any localized version of Internet Explorer already installed on a machine. This problem will occur if the English version (3.01) is newer than the localized version. There is no warning to the user.
You may encounter some problems with your installation path if another Visual Studio product is already installed and you change or modify your default installation path. It is not recommended you change the default.
To install Visual J++ 1.1 under Windows 95, you must be running a protected-mode CD-ROM driver. You can verify this by checking the Device Manager. If you are currently using a real-mode CD-ROM driver, contact your CD-ROM drive manufacturer for an updated driver for Windows 95 before installing Visual J++ 1.1.
You can use the Knowledge Base articles in the MSDN documentation to resolve known installation and operating problems. Select the Search command from the Help menu and search for error messages or related keywords to find a problem description and resolution.
For more information about using DCOM with Java see the Microsoft Knowledge Base article Q162164. This article can be found by visiting the Microsoft Knowlege Base Web site at http://www.microsoft.com/kb/. Once connected, select "Visual J++" as the product, then query on article "Q162164".
At some monitor resolutions the class name drop-down control on the Wizard Bar may not be wide enough to display the entire qualified java class name. The Wizard Bar is customizable however. For more information about changing the width of this control, see the topic "Customizing a Toolbar" in the Developer Studio Environment User's Guide.
After generating source code with Database Wizard for Java, the following exception may occur at run-time:
com.ms.com.ComFailException (800a9c42h)
This message occurs when older versions of SQL Server do not contain the same stored procedures as more recent ODBC drivers. To work around this problem, update the SQL Server to include the latest stored procedures which are fully compatible with the latest RDO and ODBC drivers.
Code generated by Database Wizard for Java will cause an exception if column or table names in an Oracle database contain any lowercase alphabetic characters. We are currently researching this problem and will post any new information on the Visual J++ web site.
After generating class source code from a dialog resource class containing controls, controls contained on the source dialog may not display properly if the project is run as an application. To solve this problem, move the resize() method call from the top of main() to the last line. For example:
public static void main(String args[])
{
// Create Toplevel Window to contain applet test1
//----------------------------------------------------------------------
test1Frame frame = new test1Frame("test1");
// Must show Frame before we size it so insets() will return valid values
//----------------------------------------------------------------------
frame.show();
frame.hide();
// The following code starts the applet running within the frame window.
// It also calls GetParameters() to retrieve parameter values from the
// command line, and sets m_fStandAlone to true to prevent init() from
// trying to get them from the HTML page.
//----------------------------------------------------------------------
test1 applet_test1 = new test1();
frame.add("Center", applet_test1);
applet_test1.m_fStandAlone = true;
applet_test1.init();
applet_test1.start();
frame.show();
frame.resize(frame.insets().left + frame.insets().right + 320,
frame.insets().top + frame.insets().bottom + 240);
}
Users of Windows NT systems with network configurations will see this error if the ActiveX Wizard for Java is run after the network card is removed. The network card is required to generate random UUIDs. If the card has been removed, the wizard will generate UUIDs which are identical. The suggested fix is to re-install the network card. If this is not possible, the resulting invalid IDL file can be edited as a temporary fix until the network car can be re-installed. Change the UUIDs to make them unique, run the wizard again, and in step 1, provide the corrected IDL file.
TLB files created from MFC ClassWizard generated ODL code may cause JavaTLB to generate class files that give the following error when loading:
ERROR:java.lang.ClassFormatErrorThis problem occurs when adding automation methods (via ClassWizard) that take parameters of type PTR.
To work around this problem, modify the generated ODL file with attributes on the automation methods:
// NOTE - ClassWizard will maintain method information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_METHOD(PtrTest)
[id(1)] void pStrTest( [in, out] BSTR* arg1);
[id(2)] void pLongTest( [in, out] long* arg1);
//}}AFX_ODL_METHOD
The JVC compiler will correctly display an error when compiling the following code:
try funct( );
catch (Exception e) { }
Compilling the code sample above results in the following output error message:
error J0016: Expected '{'
According to the Java Lanaguage Specification, try blocks must be fully enclosed by brackets. Although the syntax shown above is incorrect, some versions of the Sun Javac compiler will build this code successfully.
In some cirumstances when stepping into class files in the directories beneath \java\classes located in your Windows directory, the line indicator arrow may sometimes appear on an invalid line. To correct this problem, obtain updated classes and source from http://www.microsoft.com/java/classd.exe and install this file into the \java\classes directory. Run the classd.exe program to install the classes. You can use the javasrc.exe tool to extract the sources. You may also recompile the .class file from its .java source file to correct the invalid line problem.
Remember, Internet technology is changing rapidly. As such, make it a point to routinely check the web site shown above for newer versions of the developer class files. (Once downloaded, use javasrc.exe to extract the source files.)
Java is a trademark of Sun Microsystems.
Oracle is a trademark of Oracle Corporation.